public class Timer
{
  private int savedTime;
  private int totalTime;
  
  public Timer(int tempTotalTime)
  {
    totalTime = tempTotalTime;
  }
  
  public void start()
  {
    savedTime = millis();
  }
  
  boolean isFinished()
  {
    int passedTime = millis() - savedTime;
    
    return passedTime > totalTime;
  }
} 

